package edu.ptu.shortlink.project.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import edu.ptu.shortlink.project.common.database.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @BelongsProject: shortlink
 * @BelongsPackage: edu.ptu.shortlink.project.dao.entity
 * @Author: HYJ
 * @CreateTime: 2025-05-07  16:38
 * @Description: 短链接访问日志实体类
 * @Version: 1.0
 */
@Data
@TableName("t_link_access_logs")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LinkAccessLogsDO extends BaseDO implements Serializable {
    @Serial
    private static final long serialVersionUID = -7430082219521783875L;
    /**
     * ID
     */
    private Long id;

    /**
     * 完整短链接
     */
    private String fullShortUrl;

    /**
     * 浏览器
     */
    private String browser;

    /**
     * 操作系统
     */
    private String os;

    /**
     * IP
     */
    private String ip;

    /**
     * 用户
     */
    private String user;

    /**
     * 设备
     */
    private String device;

    /**
     * 网络
     */
    private String network;

    /**
     * 地区
     */
    private String locale;
}
